const moduleName = 'cases'
const root = require('../data/config.js').request.root;
let base = require('_base');

function make(apiName) {
  return (function (data, callback) {
    wx.request(base.simplateRequest({
      url: require('../data/config.js').request.base + "/" + "complain" + "/" + moduleName + "/" + apiName,
      data: data,
      success: callback.success
    }, true));
  });
}
module.exports = {
  add: make('add'),
  // this._request("complain-case").add({'cid','type','preview','reason'}, success: function({result:case}));
  checkMessage: make('checkMessage'),
  // this._request("complain-case").checkMessage({'content'}, success: function({result: }));

}

